package com.alpaak.eurekaclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springboot-demo
 * @className: HiController
 * @description:
 * @author: alpaak
 * @create: 2019-05-04 09:04
 **/


@RestController
public class HiController {
    @Value("${server.port}")
    private Integer port;

    @GetMapping("/hi")
    public String home(@RequestParam String name) {
        return "hi "+name+",I am port:"+port;
    }
}
